package com.moweilin.folded_binding;/**
 * Created by moweilin on 2017/1/11.
 */

import com.moweilin.folded_binding.components.MainPage;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.image.Image;
import javafx.stage.Stage;

import java.io.IOException;

public class MainApp extends Application {
    public static final String APP_TITLE= "Folded Binding";
    public static void main(String[] args) {
        launch(args);
    }

    @Override
    public void start(Stage primaryStage) {

        primaryStage.setTitle(APP_TITLE);

        try {
            primaryStage.setScene(buildScene());
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
        primaryStage.show();
    }
    public void showImage(Image image){
//        imageView.setImage(image);

    }
    private Scene buildScene() throws IOException {

        MainPage mainPage = new MainPage();
        Scene scene = new Scene(mainPage);
        return scene;
    }
}
